package com.hj.saapp.control.adapter;

import com.hj.saapp.BCDApplication;
import com.hj.saapp.R;
import com.hj.saapp.bean.MenuBean;

import java.util.List;

/**
 * Created by "丁永泽" on 2016/9/23.
 */

public class MainActivityMenuAdapter extends CommonAdapter<MenuBean> {


    public MainActivityMenuAdapter(List<MenuBean> datas) {
        super(BCDApplication.getApp(), datas, R.layout.view_main_menu_item);
    }

    @Override
    public void convert(ViewHolder holder, MenuBean s) {

        holder.setText(R.id.textTv, s.text);
        holder.setImageResource(R.id.titleIv, s.id);

    }
}
